package com.hzw.saas.common.storage.enums;

import java.io.File;

/**
 * @author zzl
 * @since 04/23/2021
 */
public enum PathTypeEnum {
    FILE,
    FOLDER,
    ;

    public static PathTypeEnum instance(File file) {
        return file == null ? null :
            file.isFile() ? FILE : FOLDER;
    }
}
